<?php

$GLOBALS['PRIFAKX'] = $pre = 'SNADA__';
// XXX, these etc files shouldn't be hardcoded
$GLOBALS["${pre}DB"] = parse_ini_file('../etc/dbinfo.ini',1);
$GLOBALS["${pre}CFG"] = parse_ini_file('../etc/sconfig.ini',1);
$GLOBALS["${pre}NAV"] = parse_ini_file('../etc/dirpath.ini',1);
// XXX, may be more useful(and faster) to just load mod in mods.php, unless there is a pressing need elsewhere.
$GLOBALS["${pre}MOD"] = parse_ini_file('../etc/mods.ini',1);

// I cannot spell SEPARATOR. Therefore it's DS or don't use it. I choose DS.
define('DS', DIRECTORY_SEPARATOR);

$GLOBALS["${pre}DB_DB"] = $GLOBALS["${pre}NAV"]['DB_DIR'].DS.'db'.$GLOBALS["${pre}NAV"]['PHP_FILE_TYPE'];
$GLOBALS["${pre}MOD_PATH"] = $GLOBALS["${pre}NAV"]['UTIL_DIR'].DS.'path'.DS.'path'.$GLOBALS["${pre}NAV"]['PHP_FILE_TYPE'];

// XXX should be decided from a ini file, perhaps CFG?, but more local and per-site.
$GLOBALS["${pre}STYLE_NAME"] = "cruxa";

// Our Core System Libraries. Can't do too much without them.

require_once $GLOBALS["${pre}DB_DB"];
require_once $GLOBALS["${pre}MOD_PATH"];


?>
